package com.atiguigu.springcloud.myHandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author : 李红磊
 * @Date : 2021/05/27/16:40
 * @Description :
 */
public class MyCustomerBlockHandler {


    public static String blockHandler1(@PathVariable("id")Long id, BlockException exception){
        return "发生未知错误，稍等一下。";
    }



    /*public static String blockHandler1(BlockException exception){
        return "测试可以";
    }*/


}
